Calculating Accumulations 1 Calculating Accumulations

نویسندگان

  • Zhenjiang HU
  • Hideya IWASAKI
  • Masato TAKEICHI
چکیده

The accumulation strategy consists of generalizing a function over an algebraic data structure by inclusion of an extra parameter, an accumulating parameter, for reusing and propagating intermediate results. It is one of the standard optimization techniques taught to functional programmers 13). However , there remain two major diculties in this accumulation strategy. One is to determine where and when to generalize the original function. By \where," we mean what part in the denition of the function should be generalized; we may generalize a constant to a variable or an expression to a new function 24). By \when," we mean how many steps of unfolding are needed to nd a suitable place for generalization. One general way, known as forcing generalization , is to do generalization in case folding cannot be done during unfold/fold transformations 2, 6, 24, 25) , although related studies remain in an ad-hoc level. The other diculty, surprisingly not yet receiving its worthy consideration, is how to manipulate accumulations. We believe this is very important, particularly in functional programming where bigger functions are often dened as a composition of smaller and simpler functions. So, for a rather complicated function

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Catamorphism-Based Transformation of Functional Programs

Accumulations are operators on structured object that proceed their computation on each element of the object keeping some intermediate results. Accumulations are widely used in the design of e cient sequential and parallel programs. The purpose of this paper is to deal with the transformation on accumulations so that more e cient programs can be derived. We formulate accumulations by means of ...

متن کامل

Efficient Parallel Algorithms for Tree Accumulations

Accumulations are higher-order operations on structured objects; they leave the shape of an object unchanged, but replace elements of that object with accumulated information about other elements. Upwards and downwards accumulations on trees are two such operations; they form the basis of many tree algorithms. We present two Erew Pram algorithms for computing accumulations on trees taking O(log...

متن کامل

Abstract geometrical computation : Turing - computing ability and unpredictable accumulations ( extended abstract )

geometrical computation: Turing-computing ability and unpredictable accumulations (extended abstract) Jérôme Durand-Lose Mars 2004 Research Report N 2004-09 École Normale Supérieure de Lyon 46 Allée d’Italie, 69364 Lyon Cedex 07, France Téléphone : +33(0)4.72.72.80.37 Télécopieur : +33(0)4.72.72.80.80 Adresse électronique : [email protected] Abstract geometrical computation: Turing-computing abil...

متن کامل

Global warming precipitation accumulation increases above the current-climate cutoff scale.

Precipitation accumulations, integrated over rainfall events, can be affected by both intensity and duration of the storm event. Thus, although precipitation intensity is widely projected to increase under global warming, a clear framework for predicting accumulation changes has been lacking, despite the importance of accumulations for societal impacts. Theory for changes in the probability den...

متن کامل

Microbial Processes and Natural Gas Accumulations

Microbial processes are responsible for the formation, alteration, and destruction of some natural gas accumulations. Individual microbial gas accumulations may be significant (> 1 Tcf; trillion cubic feet or 28.3 billion cubic meters) and collectively account for more than 20% of the global gas resource-base, dominating in some individual basins. Often cited resource estimates do not effective...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999